-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
-- https://www.nerdfonts.com/cheat-sheet
local wk = require("which-key")
wk.add({
  mode = "n",
  "<leader>fP",
  function()
    local ok, fzf = pcall(require, "fzf-lua")
    if ok then
      fzf.files({
        cwd = require("lazy.core.config").options.root,
      })
    else
      local ok2, telescope = pcall(require, "telescope.builtin")
      if ok2 ~= nil then
        telescope.find_files({ cwd = require("lazy.core.config").options.root })
      end
    end
  end,
  desc = "Find Plugin File",
  icon = "󰮗",
})

wk.add({
  "<leader>a",
  mode = { "n", "x" },
  group = "AnyJump",
  icon = "󱋿",
  desc = "AnyJump",
})

wk.add({
  "<leader>z",
  mode = "n",
  group = "zk note",
  icon = "󱨋",
})

vim.schedule(function()
  wk.add({
    "<leader>o",
    group = "overseer tasks",
    mode = "n",
    icon = "",
  })
end)
